﻿using System.ComponentModel.DataAnnotations;
using Fadada.FASC.SDK.DotNetCore.Attributes;
using Newtonsoft.Json;

namespace Fadada.FASC.SDK.DotNetCore.Model
{
    [RemoteService("/doc-template/get-list", "POST")]
    public class DocTemplateGetList
    {
        /// <summary>
        /// 模板归属方，指定获取该归属方的模板。需检查授权如果未提供则表示查询该应用下的模板。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "ownerId", Required = Required.AllowNull)]
        public OpenId OwnerId { get; set; }

        /// <summary>
        /// 查询条件。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "listFilter", Required = Required.AllowNull)]
        public ListFilt ListFilter { get; set; }

        /// <summary>
        /// 查询结果分页返回，此处指定第几页，如果不传默从第一页返回。页码从1开始，即首页为1。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "listPageNo", Required = Required.AllowNull)]
        public int ListPageNo { get; set; } = 1;

        /// <summary>
        /// 指定每页多少条数据，如果不传默认为100，单页最大100。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "listPageSize", Required = Required.AllowNull)]
        public int ListPageSize { get; set; } = 100;
    }

}